import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入css样式
import "swiper/css/swiper.css"
import '../src/elementUI/index'
import '@/assets/css/reset.css'
import '@/assets/css/_themes.css'
// 引入echarts
import * as echarts from 'echarts';
// 引入io
import io from './utils/weapp.socket.io'
Vue.prototype.socket = io('http://localhost:8082')
Vue.prototype.$echarts = echarts
Vue.config.productionTip = false
// 引入公共组件
import Swiper from '@/components/Swiper'

import ChatRoom from '@/components/ChatRoom.vue'
Vue.component('Swiper',Swiper)
Vue.component('ChatRoom',ChatRoom)
new Vue({
  router,
  store,
  render: h => h(App),
  beforeCreate(){
    Vue.prototype.$bus = this//安装全局事件总线
  }
}).$mount('#app')
